package com.rjkj.medicalwaste.bean

/**
 * @author zhangmeng
 * @date 2019/7/20
 */
enum class ReviewTypeEnum(var key: String, var value: String) {
    /**
     * 是通过什么模式进行的复核
     * 0:入库，1:袋模式复核，11:袋模式复核失败 2:箱模式复核 22:箱模式复核失败 3:垃圾桶装箱入库
     * 0:Storage,
     * 1:Bag mode review, 11:Bag mode review failure,
     * 2:Box mode review, 22:Box mode review failure,
     * 3:Garbage bin loading and storage
     */
    storage("0", "入库"),
    bag_review("1", "袋模式复核"),
    bag_review_fail("11", "袋模式复核失败"),
    box_review(
        "2",
        "箱模式复核"
    ),
    box_review_fail("22", "箱模式复核失败"),
    trash_storage("3", "垃圾桶装箱入库"),
    VEHICLE_REVIEW(
        "33",
        "整车复核失败"
    ),
    network_scale_auto("4", "自动入库"),
    DOCKING_REVIEW("5", "对接入库");

    companion object {
        fun findValueByKey(key: String): String {
            for (value in values()) {
                if (value.key == key) {
                    return value.value
                }
            }
            return ""
        }
    }
}